package module.main.model.dataObj
{
	/**
	 *	好友数据强类型 
	 * @author killsoon
	 */	
	public class FriendInfoObj
	{
		private var fm_uid:String;
		private var head_url:String;
		private var platform_uid:String;
		private var user_name:String;
		private var platform_id:String;
		private var grade:Number;
		
		public function FriendInfoObj()
		{
			
		}
		
		public static function phaseData(data:Object):FriendInfoObj
		{
			var friendInfoObj:FriendInfoObj = new FriendInfoObj();
			
			if(data.hasOwnProperty("fm_uid")) friendInfoObj.fm_uid = data.fm_uid;
			if(data.hasOwnProperty("head_url")) friendInfoObj.head_url = data.head_url;
			if(data.hasOwnProperty("platform_uid")) friendInfoObj.platform_uid = data.platform_uid;
			if(data.hasOwnProperty("user_name")) friendInfoObj.user_name = data.user_name;
			if(data.hasOwnProperty("grade")) friendInfoObj.grade = data.grade;
			if(data.hasOwnProperty("platform_id")) friendInfoObj.platform_id = data.platform_id;
			
			return friendInfoObj;
		}
		
		public function clone():FriendInfoObj
		{
			var returnObj:FriendInfoObj = new FriendInfoObj();
			
			returnObj.fm_uid = this.fm_uid;
			returnObj.grade = this.grade;
			returnObj.head_url = this.head_url;
			returnObj.platform_id = this.platform_id;
			returnObj.platform_uid = this.platform_uid;
			returnObj.user_name = this.user_name;
			
			return returnObj;
		}
	}
}